#!/usr/bin/perl
use utf8;
use strict;

chomp( @strings = <STDIN> );
@sorted_strings = sort(@strings);
foreach $index (0 .. $#sorted_strings){
	print $sorted_strings[$index], "\n";
}